package top.smallway.lightbandassistant_app.data;

import static top.smallway.lightbandassistant_app.method.Method.secondsToTimeFormat;

import android.content.Context;
import android.content.Intent;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

import top.smallway.lightbandassistant_app.UI.AboutSong;


public class Song_Data {


    public String getSong_id() {
        return Song_id;
    }

    public void setSong_id(String song_id) {
        Song_id = song_id;
    }

    public String getSong_name() {
        return Song_name;
    }

    public void setSong_name(String song_name) {
        Song_name = song_name;
    }

    public String getSong_description() {
        return Song_description;
    }

    public void setSong_description(String song_description) {
        Song_description = song_description;
    }

    public String getDownloadURL() {
        return downloadURL;
    }

    public void setDownloadURL(String downloadURL) {
        this.downloadURL = downloadURL;
    }

    public String getCoverURL() {
        return coverURL;
    }

    public void setCoverURL(String coverURL) {
        this.coverURL = coverURL;
    }

    public String getPreviewURL() {
        return previewURL;
    }

    public void setPreviewURL(String previewURL) {
        this.previewURL = previewURL;
    }

    public String getSongAuthorName() {
        return songAuthorName;
    }

    public void setSongAuthorName(String songAuthorName) {
        this.songAuthorName = songAuthorName;
    }

    public float getBpm() {
        return bpm;
    }

    public void setBpm(float bpm) {
        this.bpm = bpm;
    }

    public List<String> getDiffs() {
        return diffs;
    }

    public void setDiffs(List<String> diffs) {
        this.diffs = diffs;
    }

    public String getAuthorName() {
        return AuthorName;
    }

    public void setAuthorName(String authorName) {
        AuthorName = authorName;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }


    public JSONObject getBlocks() {
        return blocks;
    }

    public void setBlocks(JSONObject blocks) {
        this.blocks = blocks;
    }

    /**
     * @param song_id          歌曲ID
     * @param song_name        歌曲名称
     * @param songAuthorName   歌曲作者
     * @param AuthorName       谱师
     * @param song_description 歌曲介绍
     * @param downloadURL      下载地址
     * @param coverURL         封面地址
     * @param previewURL       音频地址
     * @param bpm              音频BPM
     * @param diffs            难度汇总
     */
    public Song_Data(String song_id, String song_name, String songAuthorName, String AuthorName, String song_description, String downloadURL, String coverURL, String previewURL, float bpm, List<String> diffs, int duration, JSONObject blocks, String hash, JSONArray collaborators) {
        this.Song_id = song_id;
        this.Song_name = song_name;
        this.Song_description = song_description;
        this.downloadURL = downloadURL;
        this.coverURL = coverURL;
        this.previewURL = previewURL;
        this.bpm = bpm;
        this.diffs = diffs;
        this.songAuthorName = songAuthorName;
        this.AuthorName = AuthorName;
        this.duration = duration;
        this.blocks = blocks;
        this.hash = hash;
        this.collaborators = collaborators;
    }

    private String Song_id;
    private String Song_name;
    private String songAuthorName;
    private JSONObject blocks;


    private String AuthorName;
    private String Song_description;
    private String downloadURL;
    private String coverURL;
    private String previewURL;
    private float bpm;
    private List<String> diffs;
    private int duration;

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    private String hash;

    public JSONArray getCollaborators() {
        return collaborators;
    }

    public void setCollaborators(JSONArray collaborators) {
        this.collaborators = collaborators;
    }

    private JSONArray collaborators;
}
